import Layout from '@/pages/public/layout' // 公共部分

const examModule = [{
  path: '/exam/module',
  component: Layout,
  children: [{
      path: 'list',
      component: () => import('@/pages/exam/module/index.vue'),
      meta: {
        title: '版块管理',
        permission: 'exam.module.list'
      }
    }, {
      path: 'create',
      component: () => import('@/pages/exam/module/create.vue'),
      meta: {
        title: '新建版块',
        permission: 'exam.module.create'
      }
    }, {
      path: ':id/edit',
      component: () => import('@/pages/exam/module/edit.vue'),
      meta: {
        title: '编辑版块',
        permission: 'exam.module.edit'
      }
    }, {
      path: ':id/point/config',
      component: () => import('@/pages/exam/module/config/point.vue'),
      meta: {
        title: '知识点练习配置',
        permission: 'exam.module.config'
      }
    }, {
      path: ':id/examination/config',
      component: () => import('@/pages/exam/module/config/examination.vue'),
      meta: {
        title: '公开考试',
        permission: 'exam.module.config'
      }
    }, {
      path: ':id/rollup/config',
      component: () => import('@/pages/exam/module/config/rollup.vue'),
      meta: {
        title: '套卷练习',
        permission: 'exam.module.config'
      }
    }, {
      path: ':id/rollup/create',
      component: () => import('@/pages/exam/module/config/rollup/create.vue'),
      meta: {
        title: '新建套卷',
        permission: 'exam.module.config'
      }
    },
    {
      path: ':id/rollup/:rollup_id(\\d+)/edit',
      component: () => import('@/pages/exam/module/config/rollup/edit.vue'),
      meta: {
        title: '编辑套卷',
        permission: 'exam.module.config'
      }
    }, {
      path: ':id/rollup/:rollup_id(\\d+)/paper',
      component: () => import('@/pages/exam/module/config/rollup/paper.vue'),
      meta: {
        title: '套卷试卷管理',
        permission: 'exam.module.config'
      }
    }, {
      path: ':id/special/config',
      component: () => import('@/pages/exam/module/config/special.vue'),
      meta: {
        title: '专项练习',
        permission: 'exam.module.config'
      }
    }, {
      path: ':id/special/:special_id(\\d+)/topic',
      component: () => import('@/pages/exam/module/config/special/topic.vue'),
      meta: {
        title: '专项试题配置',
        permission: 'exam.module.config'
      }
    }
  ]
}]

export default examModule
